const navBar = {
  state: {
    navBarStyle: 9 // 0：纯文字，1：带图标，2：底部无导航
  },
  getters: {
    getNavBar: state => {
      return state
    }
  },
  mutations: {
    SET_NAVBAR: (state, navbar) => {
      state.navBarStyle = navbar
    }
  },
  actions: {
    setNavBar({ commit }, navbar) {
      commit('SET_NAVBAR', navbar)
    }
  }
}

export default navBar
